package com.platform.manager.quartz;

import org.springframework.stereotype.Service;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-8-27
 * Time: 下午5:47
 * To change this template use File | Settings | File Templates.
 */
@Service("timeWork")
public class TimeWork {

    public void task() {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("我是 2 个任务，执行时间点：" + df.format(new Date()));
    }

}
